package org.meeting.radish.oj;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class OjParameter {

    public static class OjExecute {
        public static String RUN = "run";
        public static String COMPILE = "compile";
    }

    public static class OjProperties {

        public static String runSh = "/bin/bash";
        public static String codePath = "./code";
        public static String fileNameSign = "<f>";
        public static Long runTime = 2000L;
        public static Map<String, List<String>> codeTypeAndRun = new HashMap<>() {{
            put("c", Arrays.asList("c", "gcc <f>.c -o <f>", "./<f>"));
            put("python2", Arrays.asList("py", "python2 <f>.py"));
            put("python3", Arrays.asList("py", "python3 <f>.py"));
            put("go", Arrays.asList("go", "go build <f>.go", "./<f>"));
        }};

    }

}
